﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace EnterpriseWebsiteApi.Dto
{
    public class ContactUpdateDto
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "ID不能为空")]
        public int Id { set; get; }

        /// <summary>
        /// 联系方式
        /// </summary>
        [Required(ErrorMessage = "联系方式不能为空")]
        [StringLength(20, ErrorMessage = "联系方式长度不能超过20")]
        public string Name { get; set; }

        /// <summary>
        /// 联系方式英文
        /// </summary>
        [StringLength(50, ErrorMessage = "联系方式英文长度不能超过50")]
        public string NameEn { get; set; }

        /// <summary>
        /// 联系人内容
        /// </summary>
        [Required(ErrorMessage = "联系人内容不能为空")]
        public string Content { get; set; }

        /// <summary>
        /// 联系人图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary>
        public bool Display { set; get; }

        public bool RightDisplay { set; get; }

        public string ContentEn { get; set; }

        public bool Highlight { set; get; }
    }
}
